package com.cw1.protoType.deepclone;

import java.io.Serializable;

/**
 * @Author qiuMi
 * @description 浅拷贝
 * @Date 2022-10-17 21:48
 **/
public class DeepCloneableTarget implements Serializable,Cloneable {
    private String cloneName;
    private String cloneClass;

    public DeepCloneableTarget(String cloneName, String cloneClass) {
        this.cloneName = cloneName;
        this.cloneClass = cloneClass;
    }

    /**
     * 因为类里是基本数据类型 -- 使用基本的clone方法即可
     * @return clone
     * @throws CloneNotSupportedException
     */
    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
}
